﻿<%@ Page Title="User Detail" Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true"
    CodeBehind="UserDetail.aspx.cs" Inherits="NetDon.OA.Portal.Admin.UserDetail" %>

<%@ Register Src="../Controls/RequiredMark.ascx" TagName="RequiredMark" TagPrefix="uc2" %>
<%@ Register Src="../Controls/AddressView.ascx" TagName="AddressView" TagPrefix="uc1" %>
<%@ Register Src="../Controls/AddressEditor.ascx" TagName="AddressEditor" TagPrefix="uc3" %>
<%@ Register TagPrefix="NetDon" Namespace="NetDon.WebControls" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:TabContainer ID="TabContainer1" runat="server" TabStripPlacement="Top">
        <asp:TabPanel ID="tabGeneralInfo" runat="server" HeaderText="General Info">
            <ContentTemplate>
                <NetDon:FormPanel ID="formGeneralInfo" runat="server" CaptionAlign="NotSet" SkinID="ProductView"
                    RepeatColumns="2">
                    <Items>
                        <NetDon:FormItem FullRow="True" HeaderVisible="False" ContentText="Basic">
                            <ContentStyle CssClass="Region" />
                        </NetDon:FormItem>
                        <NetDon:FormItem HeaderText="LoginName">
                            <ContentTemplate>
                                <div>
                                    <%# Server.HtmlEncode(Convert.ToString(Eval("LoginName")))%>
                                </div>
                            </ContentTemplate>
                        </NetDon:FormItem>
                        <NetDon:FormItem HeaderText="FullName">
                            <ContentTemplate>
                                <div>
                                    <%# Server.HtmlEncode(Convert.ToString(Eval("FirstName"))) + "&nbsp;" + Server.HtmlEncode(Convert.ToString(Eval("LastName")))%>
                                </div>
                            </ContentTemplate>
                        </NetDon:FormItem>
                        <NetDon:FormItem HeaderText="Email">
                            <ContentTemplate>
                                <div>
                                    <%# String.IsNullOrEmpty(Convert.ToString(Eval("Email"))) ? "&nbsp;" : Server.HtmlEncode(Convert.ToString(Eval("Email")))%>
                                </div>
                            </ContentTemplate>
                        </NetDon:FormItem>
                        <NetDon:FormItem HeaderText="Phone">
                            <ContentTemplate>
                                <div>
                                    <%# String.IsNullOrEmpty(Convert.ToString(Eval("Phone"))) ? "&nbsp;" : Server.HtmlEncode(Convert.ToString(Eval("Phone")))%>
                                </div>
                            </ContentTemplate>
                        </NetDon:FormItem>
                    </Items>
                </NetDon:FormPanel>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="TabPanelEmployeeProfile" runat="server" HeaderText="员工信息" Visible="true">
            <ContentTemplate>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <asp:Panel runat="server" ID="panelEmployeeProfile">
                            <NetDon:FormPanel runat="server" ID="formViewEmployeeProfile" RepeatColumns="2" SkinID="ProductView">
                                <Items>
                                    <NetDon:FormItem HeaderText="Phone" ColumnSpan="2">
                                        <ContentTemplate>
                                            <div style="width: 535px">
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("Phone"))) ? "&nbsp;" : Server.HtmlEncode(Convert.ToString(Eval("Phone")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Address" ColumnSpan="2" Key="BusinessAddress">
                                        <ContentStyle CssClass="" />
                                        <ContentTemplate>
                                            <uc1:AddressView ID="AddressView1" runat="server" />
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                </Items>
                            </NetDon:FormPanel>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="tabSupplierProfile" runat="server" HeaderText="供应商信息" Visible="true">
            <ContentTemplate>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:Panel runat="server" ID="panelViewSupplierProfile">
                            <NetDon:FormPanel runat="server" ID="formViewSupplierProfile" RepeatColumns="2" SkinID="ProductView">
                                <Items>
                                    <NetDon:FormItem HeaderText="BusinessName" ColumnSpan="2">
                                        <ContentTemplate>
                                            <div style="width: 535px">
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("BusinessName"))) ? "&nbsp;" : Server.HtmlEncode(Convert.ToString(Eval("BusinessName")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Email" ColumnSpan="2">
                                        <ContentTemplate>
                                            <div style="width: 535px">
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("Email"))) ? "&nbsp;" : Server.HtmlEncode(Convert.ToString(Eval("Email")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Phone" ColumnSpan="2">
                                        <ContentTemplate>
                                            <div style="width: 535px">
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("Phone"))) ? "&nbsp;" : Server.HtmlEncode(Convert.ToString(Eval("Phone")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Business Address" ColumnSpan="2" Key="BusinessAddress">
                                        <ContentStyle CssClass="" />
                                        <ContentTemplate>
                                            <uc1:AddressView ID="AddressViewBusinessAddress" runat="server" />
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Fax" ColumnSpan="2">
                                        <ContentTemplate>
                                            <div style="width: 535px">
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("Fax"))) ? "&nbsp;" : Server.HtmlEncode(Convert.ToString(Eval("Fax")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="WebSite" ColumnSpan="2">
                                        <ContentTemplate>
                                            <div style="width: 535px">
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("Website"))) ? "&nbsp;" : Server.HtmlEncode(Convert.ToString(Eval("Website")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Credit Limit">
                                        <ContentTemplate>
                                            <div>
                                                <asp:Label ID="lblSupplierCreditLimit" runat="server"></asp:Label>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem ColumnSpan="2" HeaderVisible="false">
                                        <ContentTemplate>
                                            <asp:Panel runat="server" ID="panelRemark" Width="654px">
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("Remark"))) ? "&nbsp;" : Server.HtmlEncode(Convert.ToString(Eval("Remark"))).Replace(Environment.NewLine, "<br/>")%>
                                            </asp:Panel>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                </Items>
                            </NetDon:FormPanel>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </asp:TabPanel>
        <asp:TabPanel ID="tabClientProfile" runat="server" HeaderText="客户信息" Visible="true">
            <ContentTemplate>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <asp:Panel runat="server" ID="panelViewClientProfile">
                            <NetDon:FormPanel ID="formViewClientProfile" RepeatColumns="2" runat="server" SkinID="ProductView">
                                <Items>
                                    <NetDon:FormItem HeaderText="Company Name">
                                        <ContentTemplate>
                                            <div>
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("CompanyName"))) ? " " : Server.HtmlEncode(Convert.ToString(Eval("CompanyName")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Email">
                                        <ContentTemplate>
                                            <div>
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("Email"))) ? " " : Server.HtmlEncode(Convert.ToString(Eval("Email")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Telephone">
                                        <ContentTemplate>
                                            <div>
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("Telephone"))) ? " " : Server.HtmlEncode(Convert.ToString(Eval("Telephone")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Fax">
                                        <ContentTemplate>
                                            <div>
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("Fax"))) ? " " : Server.HtmlEncode(Convert.ToString(Eval("Fax")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Credit Limit">
                                        <ContentTemplate>
                                            <div>
                                                <asp:Label ID="lblDistributorCreditLimit" runat="server"></asp:Label>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Business Address" ColumnSpan="2">
                                        <ContentStyle CssClass="" />
                                        <ContentTemplate>
                                            <uc1:AddressView ID="AddressView3" runat="server" AddressId='<%# Eval("BusinessAddressId") %>' />
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Website" ColumnSpan="2">
                                        <ContentTemplate>
                                            <%# String.IsNullOrEmpty(Convert.ToString(Eval("Website"))) ? "&nbsp;" : Server.HtmlEncode(Convert.ToString(Eval("Website")))%>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                    <NetDon:FormItem HeaderText="Description" ColumnSpan="2">
                                        <ContentTemplate>
                                            <div style="width: 535px">
                                                <%# String.IsNullOrEmpty(Convert.ToString(Eval("Description"))) ? " " : Server.HtmlEncode(Convert.ToString(Eval("Description")))%>
                                            </div>
                                        </ContentTemplate>
                                    </NetDon:FormItem>
                                </Items>
                            </NetDon:FormPanel>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </asp:TabPanel>
    </asp:TabContainer>
</asp:Content>
